package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Permission;
import org.cangku.entity.RolePermission;

import java.util.List;

public interface RolePermissionDao {

    public List<Long> getPermissionidByroleid(long roleid);

    public List<Permission> queryByRoleid(int roleid);

    /*根据roleid删除rolepermission的所有值*/
    public boolean deleteAllByRoleid(int roleid);
    /*添加*/
    public void insertRolePermission(@Param("roleid") int roleid,@Param("permissionid") int permissionid);
}
